import 'package:flutter/material.dart';

class MyApp13 extends StatelessWidget {
  const MyApp13({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(
          "ListView使用",
          style: TextStyle(fontSize: 20, color: Colors.white),
        ),
        backgroundColor: Colors.red,
        centerTitle: true,
      ),
      body: Container(
        child: ListView(
          scrollDirection: Axis.vertical,
          // physics: NeverScrollableScrollPhysics(),
          children: [
            Container(color: Colors.blue, height: 100, width: 100),
            Container(color: Colors.green, height: 200, width: 200),
            Container(color: Colors.yellow, height: 300, width: 300),
            Container(color: Colors.red, height: 400, width: 400),
            Container(
              color: const Color.fromARGB(255, 138, 33, 243),
              height: 500,
              width: 500,
            ),
          ],
        ),
      ),
    );
  }
}
